<template>
  <div>
    <div class="action-item" v-for="(item, i) in arrayData" :key="i">
      <el-input
        class="act-input"
        style="width: 200px !important"
        v-model="item.a"
        placeholder="请输入资源操作"
      ></el-input>
      <el-input
        class="act-input"
        style="width: 200px !important"
        v-model="item.b"
        placeholder="请输入"
      ></el-input>
      <el-input
        class="act-input"
        style="width: 200px !important"
        v-model="item.c"
        placeholder="请输入"
      ></el-input>
      <el-button type="text" @click="delFn(i)">删除</el-button>
    </div>
  </div>
</template>
<script>
export default {
  name: "editList",
  props: {
    arrayData: {
      type: Array,
      default: () => [],
    },
  },
  components: {},
  data() {
    return {};
  },
  created() {},
  methods: {
    delFn(i) {
      this.$emit("del", i);
    },
  },
};
</script>
<style lang="scss" scoped>
.action-item {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  .act-input {
    margin-right: 10px;
  }
}
</style>
